﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using MyTested.AspNetCore.Mvc;
using MyTested.AspNetCore.Mvc.Utilities.Extensions;
using WebApiCore.Controllers;
using Xunit;

namespace WeiApiUnitest.Controller
{
    public class ValuesControllerTest
    {
        [Fact]
        public void GetValues()
        {
            MyMvc.Controller<ValuesController>()
                .Calling(d => d.Get())
                .ShouldReturn()
                .ResultOfType<IEnumerable<string>>()
                .Passing(d=>d.Any());

        }
    }
}
